Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 20: Lighting Your World

../ch20/20fig13c.gif
Figure 20.13c

A directional light used to simulate the sun at sunset. Compare with Figures 20.13a and b.

20fig13c.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        DirectionalLight {
            direction -0.8 -0.2 -0.2
            intensity 1.0
            ambientIntensity 0.2
            color 1.0 0.3 0.1
        },
    # Vaulted ceiling and columns
        Inline {
            url "vaulted.wrl"
            bboxCenter 0.0 1.0 0.0
            bboxSize   6.0 2.0 6.0
        },
    # Floor
        Shape {
            appearance Appearance {
                material Material { }
            }
            geometry Box { size 16.0 0.01 16.0 }
        }
    ]
}